package com.demo.core.aop;

import jakarta.interceptor.AroundInvoke;
import jakarta.interceptor.Interceptor;
import jakarta.interceptor.InvocationContext;

@AopAnno
@Interceptor
public class AopAnnoInterceptor {

    @AroundInvoke
    public Object invoke(InvocationContext invocationContext) throws Exception {
        Object[] parameters = invocationContext.getParameters();
        for (Object parameter : parameters) {
            System.out.println(parameter);
        }
        return invocationContext.proceed();
    }
}
